import Vue from 'vue'
import VueRouter from 'vue-router'
import Mint from 'mint-ui';
import Index from './index.vue'
import payment from './views/payment.vue'
import payFail from './views/payFail.vue'
import paySuccess from './views/paySuccess.vue'
import couponList from './views/couponList.vue'
import '../../assets/less/base.less'


import 'mint-ui/lib/style.css'


Vue.use(VueRouter);
Vue.use(Mint);

Vue.config.productionTip = false

const routes = [
    { path: '/payment', component: payment },
    { path: '/paySuccess', component: paySuccess },
    { path: '/payFail', component: payFail },
    { path: '/couponList', component: couponList },
    { path: '*', redirect: '/payment' }

]

const router = new VueRouter({
    routes
});

new Vue({
    el: '#app',
    router,
    template: '<Index/>',
    components: { Index }
})